package tenumn.energytech.registrys;

import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.common.capabilities.CapabilityManager;
import net.minecraftforge.common.capabilities.CapabilityToken;
import net.minecraftforge.common.capabilities.RegisterCapabilitiesEvent;
import tenumn.energytech.registrys.capability.CapabilityHeart;
import tenumn.energytech.registrys.capability.GasTank;
import tenumn.energytech.registrys.capability.ICapabilityHeart;

public class CapabilitiesRegistry {

    public static final Capability<ICapabilityHeart> HEART_CAPABILITY = CapabilityManager.get(new CapabilityToken<>() {
    });
    public static final Capability<GasTank> GAS_CAPABILITY = CapabilityManager.get(new CapabilityToken<>() {
    });

    public static void onRegisterCapabilities(RegisterCapabilitiesEvent event) {
        event.register(ICapabilityHeart.class);
        event.register(GasTank.class);
    }
}
